<template>
<p ref="son">哈喽这是SOn</p>
  <button>点击</button>
</template>

<script>
export default {
  name: "Son",

  methods:{
    hh(){
      console.log(this.$refs.son)
    }
  }
}
</script>

<style scoped>

</style>